module.exports = options => {
    return async (req, res, next) => {
        //把小写复数转换成首字母大写的单数单词
        const ModelName = require('inflection').classify(req.params.resource);
        req.Model = require(`../models/${ModelName}`);
        next();
    }
}